module.exports = {
    render: function () {
        var getPaging = function (data, callBack) {
            // 测试用伪数据
            var result = {
                "totalRecord": "100",
                "list": [{
                    "name": "testName",
                    "value": "testValue"
                }, {
                    "name": "testName",
                    "value": "testValue"
                }, {
                    "name": "testName",
                    "value": "testValue"
                }, {
                    "name": "testName",
                    "value": "testValue"
                }]
            };
            callBack(result);
        };

        var paging = icu.paging({
            data: {
                "pageInfo": {
                    "index": "1",
                    "count": "30"
                }
            },
            hasQuick: true,
            limitPage: true,
            countPage: true,
            ajaxEvent: getPaging,
            success: function (result) {
                console.log(result);
            }
        });
        this.$el.find('#pagingBox').append(paging.render());
    },
};
